from flask_login import LoginManager



login_manager = LoginManager()
login_manager.login_view = "login"
login_manager.session_protection = "strong"
login_manager.login_message = "Please login to access this page."
login_manager.login_message_category = "info"

	
@login_manager.user_loader
def load_user(userl_id):
	"""Load the user's info."""

	from .model import UserL
	return UserL.query.filter_by(id=userl_id).first()